package com.ruoyi.repair.domain;


import java.math.BigDecimal;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 维修用料对象 t_work_part
 *
 * @author ViGrayThorn
 * @since 1.0.0
 * date 2025-09-24 15:04:57
 */
public class TWorkPart extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	private Long id;

	/**
	 * 维修单号
	 */
	@Excel(name = "维修单号")
	private String workNo;

	/**
	 * 备件编号
	 */
	@Excel(name = "备件编号")
	private String partNo;

	/**
	 * 出库仓ID
	 */
	@Excel(name = "出库仓ID")
	private Long warehouseId;

	/**
	 * 用量
	 */
	@Excel(name = "用量")
	private BigDecimal quantity;

	/**
	 * 维修时的库存快照
	 */
	@Excel(name = "维修时的库存快照")
	private BigDecimal stockAtTime;

	/**
	 * 逻辑删除:0未删 1已删
	 */
	@Excel(name = "逻辑删除:0未删 1已删")
	private Integer isDelete;

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setWorkNo(String workNo) {
		this.workNo = workNo;
	}

	public String getWorkNo() {
		return workNo;
	}

	public void setPartNo(String partNo) {
		this.partNo = partNo;
	}

	public String getPartNo() {
		return partNo;
	}

	public void setWarehouseId(Long warehouseId) {
		this.warehouseId = warehouseId;
	}

	public Long getWarehouseId() {
		return warehouseId;
	}

	public void setQuantity(BigDecimal quantity) {
		this.quantity = quantity;
	}

	public BigDecimal getQuantity() {
		return quantity;
	}

	public void setStockAtTime(BigDecimal stockAtTime) {
		this.stockAtTime = stockAtTime;
	}

	public BigDecimal getStockAtTime() {
		return stockAtTime;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	public Integer getIsDelete() {
		return isDelete;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
				.append("id", getId())
				.append("workNo", getWorkNo())
				.append("partNo", getPartNo())
				.append("warehouseId", getWarehouseId())
				.append("quantity", getQuantity())
				.append("stockAtTime", getStockAtTime())
				.append("isDelete", getIsDelete())
				.toString();
	}
}
